package com.example.mybatisplus.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.mybatisplus.entity.User;
import com.example.mybatisplus.vo.UserVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserService extends IService<User> {

    List<User> listByUserName(String userName);

    List<User> allList();

    /**
     * 测试分页
     * @param page
     * @return
     */
    Page<UserVo> allListByPage(Page page, @Param("username") String username);
}
